<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组统计</title>
</head>

<body>
    <script>
        let arr = [12, 45, 23, 78, 56, 45, 1, 2, 34, 24, 45, 1, 3, 7, 8, 9]
        let arr1 = []
        for (let i = 0; i < arr.length; i++) {
            if (arr[i] > 10) {
                arr1.push(arr[i])
            }
        }
        console.log(arr1)
        console.log(arr1.length)
    </script>
</body>

</html>